package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.GreTree;
import cn.topevery.garden.entity.query.GreTreeQuery;
import cn.topevery.garden.entity.vo.GreTreeRecordVO;
import cn.topevery.garden.entity.vo.GreTreeVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.util.List;
import java.util.Map;

/**
 * 行道树
 *
 * @author code-generate
 * @date 2022-01-05
 */
public interface GreTreeDao extends BaseDao<GreTree> {

    

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<GreTreeVO> listPage(GreTreeQuery query);

    GreTree getEntityByColumn(String key,String value);

    DataPager<GreTreeVO> getList(GreTreeQuery query);
    DataPager<GreTreeRecordVO> getRecordList(GreTreeQuery query);
    void update(GreTree getGreTree,Integer userId);
    void insert(GreTree greTree,Integer userId);
    void deleteByIds(List<String> ids);
    void deleteById(Integer id);
    List<Map<String,Object>> getAllTreeForMap(String type);
    void insertSql(GreTree greTree);
}
